﻿using Microsoft.AspNetCore.Mvc;

namespace Poplar.Passport.Portal.Controllers
{
    public class BaseController : Controller
    {
        protected object Result(int status, string msg = null)
        {
            return new
            {
                status,
                msg
            };
        }

        protected object Result(object data, int status = 0, string msg = null)
        {
            return new
            {
                data,
                status,
                msg
            };
        }
    }
}